<template>
  <view class="container screen-width">
    <!-- <img src="../../static/huodong-bg.png" /> -->
    <!-- <view class="open-btn" @click="toVip">开通会员</view> -->
  </view>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    toVip() {
      let token = this.$getToken();
      if (!token) {
        uni.showModal({
          title: "提示",
          content: "您还没有登录，请登录后操作！",
          cancelText: "取消", // 取消按钮的文字
          confirmText: "去登录", // 确认按钮文字
          confirmColor: "#1678ff",
          success: res => {
            if (res.confirm) {
              uni.setStorageSync("pageUrl", window.location.href);
              uni.navigateTo({
                url: `/pages/login/index`
              });
            }
          }
        });
      } else {
        uni.navigateTo({
          url: "/pages/VIP/index"
        });
      }
    }
  }
};
</script>
<style lang="less" scoped>
.container {
  width: 100%;
  // height: 100vh;
  position: relative;
  img {
    width: 100%;
    height: 100%;
  }
  .open-btn {
    // width: 200rpx;
    font-size: 25rpx;
    position: absolute;
    bottom: 8%;
    left: 43%;
    background: #192654;
    border-radius: 50rpx;
    color: #ffffff;
    padding: 6rpx 40rpx;
    border: 4rpx solid #1678ff;
  }
}
</style>